import React, { Component } from 'react'
import { Result, Button } from 'antd';

export default class NotFound extends Component {
  backHome = () => {
    this.props.history.push('admin')
  }

  render() {
    return (
      <div>
        <Result
          status="404"
          title="404"
          subTitle="没找到"
          extra={<Button type="primary" onClick={ this.backHome }>回到首页</Button>}
        />
      </div>
    )
  }
}
